package com.victor.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.victor.entity.Statistics;

@Mapper
public interface StatisticsDao {
	int batchDelete(@Param("ids") int[] ids);

	int insert(Statistics record);

	Statistics findById(Integer sId);

	int update(Statistics record);

	Statistics findByParam(@Param("sPicId") String sPicId, @Param("sUserId") String sUserId,
			@Param("sTime") String sTime);

	List<Statistics> findWeekReport(@Param("userid") String userid,@Param("pictype") String pictype);

	List<Map<String, String>> findThisMonth(@Param("userid") String userid,@Param("pictype") String pictype);

	List<Map<String, String>> findLastMonth(@Param("userid") String userid,@Param("pictype") String pictype);

	List<String> findPastMonth(@Param("userid") String userid,@Param("pictype") String pictype);

	List<Map<String, Object>> batchByUserid(@Param("list")List<Integer> useridList,@Param("date") String date,@Param("pictype") String pictype);

}